package com.xiaoxin.yixinai.activity.formfield;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.xiaoxin.yixinai._frame.base.BaseModel;

/**
 * 活动留言表字段类
 * @author wsg
 *
 */
@Entity
@Table(name = "tb_activity_form_field")
public class FormField extends BaseModel {

    /**
     * 主键
     */
    @Id
    @Column(name = "id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;
    
    /**
     * 活动id
     */
    @Column(name = "activity_id")
    private Integer activityId;
    
    /**
     * 活动留言表id
     */
    @Column(name = "form_id")
    private Integer formId;
    
    /**
     * 留言表列名
     */
    @Column(name = "field_db_name")
    private String fieldDbName;
    
    /**
     * 留言表列显示名
     */
    @Column(name = "field_show_name")
    private String fieldShowName;
    
    /**
     * 字段排序号（从1开始）
     */
    @Column(name = "field_index")
    private Integer fieldIndex;
    
    /**
     * 配置页面的编辑排序号（从1开始）
     */
    @Column(name = "edit_index")
    private Integer editIndex;
    
    /**
     * 字段使用类型（1:单行文本输入,2:下拉选,3:区域选择,4:日期选择,5:时间选择,6:数字输入,7:多行文本输入,8:单人员选择,9:多人员选择,10:图片选择,11:附件选择）
     */
    @Column(name = "field_use_type")
    private Integer fieldUseType;
    
    /**
     * 字段长度
     */
    @Column(name = "field_data_length")
    private Integer fieldDataLength;
    
    /**
     * 是否必填（0:未必填，1:必填）
     */
    @Column(name = "required")
    private Integer required;
    
    /**
     * 是否启用（0:不启用，1:启用）
     */
    @Column(name = "enable")
    private Integer enable;
    
    /**
     * 是否可修改（0:不可修改，1:可修改）
     */
    @Column(name = "revisability")
    private Integer revisability;
    
    @Column(name = "company_id")
    private Integer companyId;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getActivityId() {
		return activityId;
	}

	public void setActivityId(Integer activityId) {
		this.activityId = activityId;
	}

	public Integer getFormId() {
		return formId;
	}

	public void setFormId(Integer formId) {
		this.formId = formId;
	}

	public String getFieldDbName() {
		return fieldDbName;
	}

	public void setFieldDbName(String fieldDbName) {
		this.fieldDbName = fieldDbName;
	}

	public String getFieldShowName() {
		return fieldShowName;
	}

	public void setFieldShowName(String fieldShowName) {
		this.fieldShowName = fieldShowName;
	}

	public Integer getFieldIndex() {
		return fieldIndex;
	}

	public void setFieldIndex(Integer fieldIndex) {
		this.fieldIndex = fieldIndex;
	}

	public Integer getEditIndex() {
		return editIndex;
	}

	public void setEditIndex(Integer editIndex) {
		this.editIndex = editIndex;
	}

	public Integer getFieldUseType() {
		return fieldUseType;
	}

	public void setFieldUseType(Integer fieldUseType) {
		this.fieldUseType = fieldUseType;
	}

	public Integer getFieldDataLength() {
		return fieldDataLength;
	}

	public void setFieldDataLength(Integer fieldDataLength) {
		this.fieldDataLength = fieldDataLength;
	}

	public Integer getRequired() {
		return required;
	}

	public void setRequired(Integer required) {
		this.required = required;
	}

	public Integer getEnable() {
		return enable;
	}

	public void setEnable(Integer enable) {
		this.enable = enable;
	}

	public Integer getRevisability() {
		return revisability;
	}

	public void setRevisability(Integer revisability) {
		this.revisability = revisability;
	}

	public Integer getCompanyId() {
		return companyId;
	}

	public void setCompanyId(Integer companyId) {
		this.companyId = companyId;
	}

    
}
